package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;


public interface AddressBookService {
    //新增地址
    void saveAddress(AddressBook addressBook);

    //查询用户地址
    List<AddressBook> getAddress();

    //根据id查询地址-查询回显
    AddressBook getById(Long id);

    //修改地址
    void updateAddress(AddressBook addressBook);

    //删除地址
    void deleteAddress(Long id);

    //设置默认地址
    void setDefault(AddressBook addressBookd);

    //根据id查询默认地址
    AddressBook getDefault();
}
